# coding=utf-8
from pygame import mixer
import time

def playsound(number):
    mixer.init()
    mixer.music.load('F:\\Users\\Wanchao Sang\\PycharmProjects\\netSpeed\\daizuo\\voice\\'+number+'.mp3')
    mixer.music.play()
    # time.sleep(10)# 这个地方可以更改播放时长
    while mixer.music.get_busy():
        print("busy...")
        time.sleep(1)
    mixer.music.stop()

playsound('0000')